package com.fengchao.api.config;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量
 * Created by wangnian on 2016/6/4.
 */
public class Constant {
    public static HashMap<String, String> CONFIGMAP;//数据库配置

    public static final String SUCCESS = "SUCCESS";//成功
    public static final String FAILURE = "FAILURE";//失败
    public static final String ENABLED = "ENABLED"; //可用
    public static final String DISABLE = "DISABLE"; //不可用
    public static final String MD5_KEY = "userPassword";//MD5加密key
    public static final String APP = "APP";//APP
    public static final String WEB = "WEB";//WEB
    public static final String SYS = "SYS";//SYS消息
    public static final String PRIVATE = "PRIVATE";//PRIVATE 私有消息

    /**
     * 粉丝
     */
    public static final String FANS = "FANS";
    /**
     * 艺人
     */
    public static final String ARTIST = "ARTIST";
    /**
     * 主办方
     */
    public static final String ORGANIZER = "ORGANIZER";
    /**
     * 场地提供
     */
    public static final String FIELD_PROVIDER = "FIELD_PROVIDER";
    /**
     * 歌曲
     */
    public static final String SONGS = "SONGS";
    /**
     * 专辑
     */
    public static final String AIBUM = "AIBUM";
    /**
     * 众筹
     */
    public static final String CROWDFUNDING = "CROWDFUNDING";

    /**
     * 预热中
     */
    public static final String PREPARE = "PREPARE";
    /**
     * 众筹中
     */
    public static final String PROCESS = "PROCESS";
    /**
     * 编辑中
     */
    public static final String EDIT = "EDIT";
    /**
     * 信息确认中
     */
    public static final String COMFIRM = "COMFIRM";

    /**
     * 出票中
     */
    public static final String DRAWN = "DRAWN";
    /**
     * 验票中
     */
    public static final String CHECK = "CHECK";
    /**
     * 众筹完成
     */
    public static final String COMPLETE = "COMPLETE";

    /**
     * 演唱会
     */
    public static final String PERFORMANCE = "PERFORMANCE";

    /**
     * 取消 下架
     */
    public static final String CANCEL = "CANCEL";
    /**
     * 待支付
     */
    public static final String APPLY = "APPLY";
    /**
     * 已支付
     */
    public static final String PAID = "PAID";

    /**
     * 退款中
     */
    public static final String REFUND = "REFUND";
    /**
     * 失效
     */
    public static final String INVALID = "INVALID";

    /**
     * 已完成
     */
    public static final String COMPLETED = "COMPLETED";

    /**
     * 退款完成
     */
    public static final String REFUND_COMPLETED = "REFUND_COMPLETED";

    /**
     * 个人
     */
    public static final String PERSON = "PERSON";
    /**
     * 微信
     */
    public static final String WECHAT = "WECHAT";

    /**
     * 微博
     */
    public static final String WEIBO = "WEIBO";
    /**
     * qq
     */
    public static final String QQ = "QQ";
    /**
     * 公司
     */
    public static final String COMPANY = "COMPANY";


    public static String HOSTILE_ATTACK = "请以正确的方式访问，恶意攻击系统自动会加入到IP黑名单";
    public static String PARAMETER_IS_NOT_COMPLETE = "参数不全";
    public static String EXCEPTION = "系统异常";
    public static String TOKEN_INVALID = "Token失效";
    public static String ADD_SUCCESS = "添加成功";
    public static String ADD_FAILURE = "添加失败";
    public static String UPDATATE_SUCCESS = "更新成功";
    public static String UPDATATE_FAILURE = "更新失败";
    public static String GET_SUCCESS = "获取成功";
    public static String GET_FAILURE = "获取失败";
    public static String DELETE_SUCCESS = "删除成功";
    public static String DELETE_FAILURE = "删除失败";
    public static String LOGIN_SUCCESS = "登录成功";
    public static String LOGIN_FAILURE = "登录失败";
    public static String PASSWORD_INVALID = "用户名和密码无效";
    public static String OLDPASSWORD_INVALID = "旧密码无效";
    public static String NO_REGISTER = "该手机号未注册";
    public static String YES_REGISTER = "该手机已注册";
    public static String USER_LOCK = "当前用户被锁定,请联系管理员";
    public static String CAPTCHA_INVALID = "验证码错误";
    public static String REGISTER_SUCCESS = "注册成功";
    public static String REGISTER_FAILURE = "注册失败";
    public static String ALREADY_REGISTER = "该手机号已注册";
    public static String SEND_SUCCESS = "发送成功";
    public static String SEND_FAILURE = "发送失败";
    public static String CREATE_ORDER_SUCCESS = "下单成功";
    public static String CREATE_ORDER_FAILURE = "下单失败";
    public static String NUMBER_INSUFFICIENT = "数量不够";
    public static String NO_ITEMS = "没有商品";
    public static String ADD_ADDRESS_MAX = "最多添加10个收货地址";
    public static String SUBMIT_SUCCESS = "提交成功";
    public static String SUBMIT_FAILURE = "提交失败";
    public static String BIND_SUCCESS = "绑定成功";
    public static String BIND_FAILURE_PHONE = "绑定失败，已绑定手机号";
    public static String BIND_FAILURE = "绑定失败，已经绑定了其他账号";
    public static String CROWDFUNDING_UNABLE_BUY = "众筹已下架";
    public static String CROWDFUNDING_PREPARE = "众筹未上架";
    public static String ILLEGAL_REQUEST = "非法的请求";
    public static String ORDER_INVALID = "订单已失效";
    public static String HOT = "最热众筹";
    public static String NEW = "最新众筹";
    public static String COMING = "即将上线";
    public static String WISHREQUESTLIMIT = "该艺人及城市每日限投一次";
    public static String QRCODE_INVALID = "二维码无效";
    public static String INSPECTOR_INVALID = "验票员身份无效";
    public static String QRCODE_VALID = "验证通过";
    public static String VERIFY_INVALID = "验证失败";

    public static String PERFORMANCE_UNABLE_BUY = "演出已下架";


    //私钥
    public static String RSA_PRIVATE = "MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAKLe7DBseWCFS+8mNP5BbC8XrJLjkEutBe/cDDnFJETA4qj7T2YET9nY5MPlCGfxDjuTWZiCEj4IikKeT/jgQp+iXbVLPE6EBpZgtpYC7I1mS7vOqRxG4llLdovd7FlfTDKmzTsZUYDL640xA1xd1ncRlYB9M2V33RalHXIXEy77AgMBAAECgYA87IyHVJxWqaYM8ErUbR6NwxpP3AYG+NMGtVZxabg2a7ydn1xE+gnwoHx6drsdPoOnb2gNb2JpiAJIBzY9D4571Zc0EuqvTwj/FYpZpQsOxYg5Sdpjd5stQtsBeFidaEWKHWCQGjAFx9FgJpvn8MAfpM3UfRNLJGZut0Q3H5qvEQJBAM6QCkTRjRKw/JUCTCiZ3F2S8XBB+A+BRhSjaEOqAjsGF9BdBMg7GEWMs94pOCUPsUfE+xLmLvMw81F10YjOWbMCQQDJ2ekIKdeYKB8/EcTCCWLy3ZTkN7KMgByfYjL4a0clFBdcc48qNV7zYQggohR3rpKxioAkiXbjuauduYrmUqGZAkA2dsQ+YQJRa1kt8O0jx23TPmtqrfo6HFveFTfon2r3JSQiTGR2Zx5/OBo0 +alUHE8iHU4WLZszhDSjxez5pW8BAkBjdgm6qQuAAT0sUbAXQJLOQ1sLfVpwmuv/qV6eRBZBcf3040hHLxdDa6uakOLu+kl0TF/KISZBHgsvY+7KgSr5AkBcs1pSpHlkr9NAViERQGMir1AsRMgeBdnusJw+KeQ10zqWVphKIUHdyp0wCR7/Efc+6wPYXohdiP0cWTogYsKl";
    // 合作身份者ID，以2088开头由16位纯数字组成的字符串
    public static String PARTNER = "2088421313647302";

    //微信
    public static String ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";//统一下单的API
    public static String REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";//退款API
    public static String APPID = "wx10d42e46ab5fd35b";
    public static String MCH_ID = "1370249302";
    public static String WEIXIN_KEY = "5R1Hv1CG2uisijo5R8tk0I5AqlCAusBs";

    //订单商品名
    public static String ORDER_NAME = "上海蜂超文化传播有限公司";
    //订单详细
    public static String ORDER_DESCRIBE = "蜂超音乐";


    //状态初始化
    public static Map<String, String> CFI_STATUS_MAP = new HashMap() {{
        put(Constant.EDIT, "编辑中");
        put(Constant.PREPARE, "预热中");
        put(Constant.PROCESS, "众筹中");
        put(Constant.SUCCESS, "众筹成功");
        put(Constant.FAILURE, "众筹失败");
        put(Constant.COMFIRM, "信息确认中");
        put(Constant.DRAWN, "出票中");
        put(Constant.CHECK, "验票中");
        put(Constant.COMPLETE, "众筹完成");
    }};
    //状态初始化
    public static Map<String, String> PFM_STATUS_MAP = new HashMap() {{
        put(Constant.EDIT, "编辑中");
        put(Constant.PROCESS, "售票中");
        put(Constant.CANCEL, "下架");
    }};

    public static Map<String, String> BCI_ARTI_IOCATIONTYPE_MAP = new HashMap() {{
        put("HMT", "港澳台");
        put("JP", "日本");
        put("KR", "韩国");
        put("EA", "欧美");
        put("CN", "中国大陆");
    }};
    public static Map<String, String> ODR_STATUS_MAP = new HashMap() {{
        put(Constant.APPLY, "待支付");
        put(Constant.PAID, "已支付");
        put(Constant.INVALID, "失效");
        put(Constant.COMPLETED, "完成");
        put(Constant.FAILURE, "失败");
        put(Constant.REFUND, "退款中");
        put(Constant.REFUND_COMPLETED, "退款完成");
    }};

    public static Map<String, String> FIELD_TYPE_MAP = new HashMap() {{
        put("PUB", "酒吧");
        put("LIVE_HOUSE", "live house");
        put("THEATRE", "剧场");
        put("STADIUM", "体育场");
        put("CONVERTION_CENTER", "会展中心");
        put("CONCERT_HALL", "音乐厅");
    }};

    //票据状态，WAITING：尚未开启验证，VALID：有效，USED：已使用，EXPIRED：已过期
    public static Map<String, String> TICKET_STATUS_MAP = new HashMap() {
        {
            put("WAITING", "尚未开启验证");
            put("VALID", "有效");
            put("USED", "已使用");
            put("EXPIRED", "已过期");
        }
    };


    /**
     * cfi config配置
     */
    public static String cityListUpdateDate = "cityListUpdateDate";//城市列表最后一次更新时间
    public static String lastVoteSummaryVersion = "lastVoteSummaryVersion";//最后一次投票总数版本号


}
